package com.app.service;

import com.app.model.ElectronicModel;
import com.app.util.Result;
import com.app.vo.NameAndValueVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
/**
 * 电子设备
 */
public interface ElectronicService {


    ElectronicModel getElcById(int id);

    Page<ElectronicModel> getPageElcList(int page, int limit, String name, List<Integer>IdList, Integer sortType);//设备管理分页查询

//    List<RoleModel> getRoleListLikeName(String roleName);//根据角色名字筛选

    List<ElectronicModel> selectListByPersonId (Integer personId,Integer deviceType);
    void update(ElectronicModel model);

    void insert(ElectronicModel model);

    void delete(int id);

    List<ElectronicModel> getStatisticsByIds(List<Integer> idList, String key);//首页统计
    //导入设备列表信息
    String importElectronic(MultipartFile file) throws IOException;

    Result<Object> deleteElectronicBatchByIds(String ids);

    List<NameAndValueVo> electronicPieCount();
}
